home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_4849 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  949 b   |  40 lines

  1. on(release){
  2.    if(_root.poz == "d")
  3.    {
  4.       if(_root.draglej == 51)
  5.       {
  6.          _root.stopdragall();
  7.          _root.ii51 = 2;
  8.          _root.venca.gotoAndPlay("strom");
  9.          _root.hideall();
  10.       }
  11.       else if(0 < _root.draglej)
  12.       {
  13.          if(eval("_root.mon_062_i" add _root.draglej add "_100") == undefined)
  14.          {
  15.             _root.d_venca.l = "mon_062_iundef_100";
  16.             _root.d_venca.i = "go";
  17.          }
  18.          else
  19.          {
  20.             _root.d_venca.l = "mon_062_i" add _root.draglej add "_100";
  21.             _root.d_venca.i = "go";
  22.          }
  23.          _root.stopdragall();
  24.          _root.hideall();
  25.       }
  26.       else
  27.       {
  28.          _root.d_venca.l = "mon_062_100";
  29.          _root.d_venca.i = "go";
  30.          _root.stopdragall();
  31.          _root.hideall();
  32.       }
  33.    }
  34.    else
  35.    {
  36.       _root.venca.gotoAndPlay(_root.poz add "d");
  37.       _root.stopdragall();
  38.    }
  39. }
  40.